package com.pyue.eam.admin.api.entity.regi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pyue.eam.admin.api.base.BaseEntity;
import com.pyue.eam.admin.api.mate.BindType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 失效模式
 *
 * @author lucc
 * @date 2023-10-18 11:36:49
 */
@Data
@TableName("cq_failure_modes")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "失效模式")
public class CqFailureModesEntity extends BaseEntity {

    /**
     * 失效模式ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "失效模式ID")
    private Integer id;

    /**
     * 失效模式名称
     */
    @Schema(description = "失效模式名称")
    private String name;

    /**
     * 失效模式描述
     */
    @Schema(description = "失效模式描述")
    private String description;

    /**
     * 失效模式分类(dict:category_failure_modes)
     */
    // @FieldBind(type = BindType.DICT + "category_failure_modes", target = "categoryTrans")
    @Schema(description = "失效模式分类")
    private String category;

    @TableField(exist = false)
    private String categoryTrans;

    /**
     * 影响程度(dict:failure_impact_dict)
     */
    // @FieldBind(type = BindType.DICT + "failure_impact_dict", target = "impactTrans")
    @Schema(description = "影响程度")
    private String impact;

    @TableField(exist = false)
    private String impactTrans;

    /**
     * 规避措施
     */
    @Schema(description = "规避措施")
    private String mitigation;

    /**
     * 检测方法
     */
    @Schema(description = "检测方法")
    private String detectionMethod;

    /**
     * 响应措施
     */
    @Schema(description = "响应措施")
    private String responseMeasure;

}
